package com.trkj.dao.wdm;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.trkj.pojo.Position;

public interface PositionDao extends CrudRepository<Position, Long>{
	@Query("SELECT p FROM Position p where positionName like ?1")
	public List<Position> falPage(String name ,Pageable p);
	@Query("SELECT count(p) FROM Position p where positionName like ?1")
	public Long  falPagecount(String name);
}
